package com.shoulei.designpattern.mediatorPattern;

/**
 * @ClassName:User
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 21:35
 * @Verson:
 */
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}
